﻿using System;
using System.Collections.Generic;

using System.Text;

namespace System.Qizx.Xml
{
    /*******************************/
    /// <summary>
    /// Basic interface for resolving entities.
    /// </summary>
    public interface XmlSaxEntityResolver
    {
        /// <summary>
        /// Allow the application to resolve external entities.
        /// </summary>
        /// <param name="publicId">The public identifier of the external entity being referenced, or null if none was supplied.</param>
        /// <param name="systemId">The system identifier of the external entity being referenced.</param>
        /// <returns>A XmlSource object describing the new input source, or null to request that the parser open a regular URI connection to the system identifier.</returns>
        XmlSource resolveEntity(string publicId, string systemId);
    }
}
